function Dialog(){

}

Dialog.prototype.show=function(option){
    $("body").append(`<div id="dialogOut" class="dialogOut"></div>`)

    $("#dialogOut").append(`<div class="dialogBumble"></div>`)

    $("#dialogOut").append(`<div id="dialogWithin" class="dialogWithin"></div>`)

    $("#dialogWithin").css(option.css)

    $.ajax({
        url:option.url,
        type:'post',
        data:JSON.stringify(option.data),
        contentType:'application/json',
        success:function(data){

            $("#dialogWithin").append(data)
        }
    })

    this.callBack()

}

Dialog.prototype.callBack=function(){

}

Dialog.prototype.closeDialog=function(){
  $("#dialogOut").remove()
}

var dialog=new Dialog();